import request from '@/utils/request'

// 查询生产过程记录列表
export function listRptrecord(query) {
  return request({
    url: '/productionProcess/bottle/list',
    method: 'get',
    params: query
  })
}

// 查询生产过程记录详细
export function getRptrecord(id) {
  return request({
    url: '/productionProcess/bottle/' + id,
    method: 'get'
  })
}

// 新增生产过程记录
export function addRptrecord(data) {
  return request({
    url: '/productionProcess/bottle',
    method: 'post',
    data: data
  })
}

// 修改生产过程记录
export function updateRptrecord(data) {
  return request({
    url: '/productionProcess/bottle',
    method: 'put',
    data: data
  })
}
export function checkRptrecord(data) {
  return request({
    url: '/productionProcess/bottle/check',
    method: 'put',
    data: data
  })
}
// 删除生产过程记录
export function delRptrecord(id) {
  return request({
    url: '/productionProcess/bottle/' + id,
    method: 'delete'
  })
}

// 读取数据
export function handleDate(query) {
  return request({
    url: '/Productionline/interfaceReport/getCBJ',
    method: 'get',
    params: query
  })
}

export function handleDate2(query) {
  return request({
    url: '/Productionline/interfaceReport/getCBJ2',
    method: 'get',
    params: query
  })
}
